home *** CD-ROM | disk | FTP | other *** search
- >I tried to unpack some xpk packed files under Amos Pro with xpk commands
- >of Easylife extension. Unpacking works fine but there are problems with the
- >Amos editor after.
- >
- >EX.
- >This is a simple example of what i did.
- >
- >Elxpk Load "df1:songs/module.med","HUFF" to 1
- >Med Play 1
-
- Well, there's your problem! You have to use "Med Load" to load a MED
- module, because the MED format requires some relocations to be done. (In
- other words, there are some pointers in the module that have to be changed
- depending on where in memory the module is loaded.) Also, MED modules have
- to be loaded to chip memory, which the normal Load command (and Elxpk Load
- as well) don't to. What you can do instead is:
-
- Elxpk Load "df1:songs/module.med","HUFF" To 1
- Bsave "T:module.temp",Start(1) To Start(1)+Length(1)
- Erase 1
- Med Load "T:module.temp",1
- Kill "T:module.temp"
- Med Play 1
-
- which is slightly more roundabout but works correctly. :)
-
- >I had the same problem also with an amos packed picture.
-
- Again, the packed picture bank format has some pointers that have to be
- relocated, at least according to the AMOS Pro manual. Do something like
- the above code, but use "Load" instead of "Med Load".
-
- --Andy Church (achurch@goober.mbhs.edu)
- WWW: http://www.mbhs.edu/~achurch/
- AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
-
-